package com.design03_behavioral.pattern22_interpreter.example02;

/**
 * @ClassName 数字表达式
 * @Description TODO
 * @Author 22963
 * @DATE 2023/9/11 0:27
 */
public class NumExpression  implements Expression{

    private long number;


    public NumExpression(long number) {
        this.number = number;
    }


    public NumExpression(String number) {
        this.number = Long.parseLong(number);
    }


    @Override
    public long interpret() {
        return this.number;
    }

}
